#!/bin/sh
# start
srcs=(7000 7001 7002 7003 7004 7005)
for src in ${srcs[@]}
do
	cd ${src}
	redis-server ./redis-${src}.conf&
	cd -
done 

# create
redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
